<%@page import="com.bean.UserBean"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<%
  UserBean details =(UserBean)request.getAttribute("userdetails");
%>
  <head>
    <base href="<%=basePath%>">
    
    <title>User add</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="CSS/style.css">
</head>
<body>

<table width="778"  border="0" cellspacing="0" cellpadding="0" align="center" style="table-layout: fixed;">
  <tr>
    <td valign="top" bgcolor="#FFFFFF">
    <table width="99%" height="510"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder_gray">
  <tr>
    <td height="510" valign="top" style="padding:5px;"><table width="98%" height="487"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="22" valign="top" class="current_addr">Current address：User &gt;&gt;<font color="red"> Details</font></td>
      </tr>
      <tr>
        <td align="center" valign="top">
        <table width="100%" height="493"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="top">
    
	<table width="600" height="432"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center" width="173" class="attr">User ID：</td>
        <td><input value="<%=details.getUserID() %>" type="text" id="userid" readonly></td>    
      </tr>
      
      <tr>
        <td width="173" align="center" class="attr">Firstname：</td>
        <td width="427" height="39">
          <input value="<%=details.getFirstname() %>" type="text" readonly></td>
      </tr>
       <tr>
        <td width="173" align="center" class="attr">Surname：</td>
        <td width="427" height="39">
          <input value="<%=details.getLastname()%>" type="text" readonly></td>
      </tr>
      <tr>
        <td width="173" align="center" class="attr">Gender：</td>
        <td height="35">
          <input name="gender" type="radio"  class="noborder" disabled <%if("male".equals(details.getGender())){%>checked <%} %>>
          <label>male </label>
          
          <input name="gender" type="radio" class="noborder" disabled <%if("female".equals(details.getGender())){%>checked <%} %>>
          <label> female</label>
          </td>
      </tr>
      
      <tr>
        <td align="center" class="attr">Age：</td>
        <td height="35"><input value="<%=details.getAge() %>" type="text" id="age" readonly></td>
      </tr>
      
      <tr>
        <td align="center" class="attr">Phone：</td>
        <td height="35"><input value="<%=details.getPhone() %>" type="text" id="phone" readonly></td>
      </tr>
      <tr>
        <td align="center" class="attr">Date：</td>
        <td height="35"><input value="<%=details.getDate() %>" type="text" id="date" readonly></td>
      </tr>
      <tr>
        <td align="center" class="attr">Email：</td>
        <td height="35"><input value="<%=details.getEmail()%>" type="text" id="email" size="50" readonly>
      </tr>
      <tr>
        <td align="center" class="attr">Remark：</td>
        <td><textarea name="remark" cols="50" rows="5" id="remark" style="overflow-y:auto; resize: none;" readonly><%=details.getRemark()%> </textarea></td>
      </tr>
      <tr>
        <td align="center">&nbsp;</td>
        <td>
        <div>
        	<input type="button" class="btn" value="back" onClick="history.back()">&nbsp;&nbsp;
        	<input type="button" class="btn" value="continue" onClick="history.back()">
        </div>
		</td>
      </tr>
    </table>
	</td>
  </tr>
</table></td>
      </tr>
    </table>
</td>
  </tr>
</table></td>
  </tr>
</table>

</body>
</html>
